#!/usr/bin/env python
###############################################################################
# File: main.py
# Name: Sal Fuentes Jr.
# Date: 08/25/2008
# Info: This is the main script which serves as a Front Controller (pattern)   
###############################################################################
import wsgiref.handlers

from google.appengine.ext import webapp
from myapp.views import *

logging.getLogger().setLevel(logging.DEBUG)

application = webapp.WSGIApplication([
  ('/', IndexHandler),
  ('/about', AboutHandler),
  ('/s3foxView', S3FoxViewHandler),
  ('/getKeys', GetKeysHandler),
  ('/getBuckets', GetBucketsHandler),
  ('/putS3Obj', PutS3ObjHandler),
  ('/deleteS3Obj', DeleteS3ObjHandler),
  ('/deleteS3Objs', DeleteS3ObjsHandler),  
  ('/getS3Obj', GetS3ObjHandler),
  ('/getS3ObjUrl', GetS3ObjUrlHandler)
], debug=True)

def main():
  wsgiref.handlers.CGIHandler().run(application)


if __name__ == '__main__':
  main()
